package com.netflexitysolutions.amazonws.ec2.internal.operations;

import com.amazonaws.ec2.doc._2009_04_04.DeregisterImageType;
import com.netflexitysolutions.amazonws.ec2.EC2;

public class DeregisterImageOperation extends SingleObjectOperationExecutor<DeregisterImageType, Boolean> {
	
	public DeregisterImageOperation(EC2 ec2, String imageId) {
		super(ec2, imageId);
	}

	@Override
	protected Boolean call(DeregisterImageType request) {
		request.setImageId(objectId);
		return getEC2().getService().deregisterImage(request).isReturn();
	}

}
